<%@ page import="com.psl.model.halfproduct" %>
<%@ page import="com.psl.model.userlogin" %>
<%@ page import="java.util.Iterator" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    userlogin userinfo = (userlogin) session.getAttribute("user");
    if (userinfo == null) {
        response.sendRedirect("/login.do");
    }%>
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title></title>
    <link href="/assets/css/layout.css" rel="stylesheet" type="text/css">
    <style>
        body{
            font-size: 15px;
        }
    </style>
</head>

<body>
<table width="99%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#AEDEF4">
    <tbody>
    <tr>
        <td height="25" colspan="13" align="center" bgcolor="#D6F2FD">
            发货清单
        </td>
    </tr>
    <tr>
        <td height="25" colspan="13" align="center" bgcolor="#D6F2FD">
        </td>
    </tr>
    <tr>
        <td align="center" bgcolor="#FFF9DF" colspan="1">供货单位</td>
        <td align="center" bgcolor="#FFF9DF">送货日期</td>
        <td height="25" align="center" bgcolor="#FFF9DF">铸件/配件名称</td>
        <td align="center" bgcolor="#FFF9DF">规格</td>
        <td align="center" bgcolor="#FFF9DF">数量</td>
        <td align="center" bgcolor="#FFF9DF">商标</td>
        <td align="center" bgcolor="#FFF9DF">压力</td>
        <td align="center" bgcolor="#FFF9DF">单重</td>
        <td align="center" bgcolor="#FFF9DF">吨价</td>
        <td align="center" bgcolor="#FFF9DF">总重</td>
        <td align="center" bgcolor="#FFF9DF">送货人员</td>
        <td align="center" bgcolor="#FFF9DF">凭条编号</td>
        <td align="center" bgcolor="#FFF9DF">操作</td>
    </tr>
    <%
        Iterator iter = hp.iterator();
        int i = 1;
        while (iter.hasNext()) {
            i = i + 1;
            hpt = (halfproduct) iter.next();
    %>
    <form name="form<%=i%>" method="post" action="/savedj.do">
        <tr>
            <input name="h_id" type="hidden" value="<%=hpt.getH_id()%>"/>
            <td height="25" align="center" bgcolor="#FFF9DF"><%=hpt.getH_area()%>
            </td>
            <td height="25" align="center" bgcolor="#FFF9DF"><%=hpt.getH_date()%>
            </td>
            <td height="25" align="center" bgcolor="#FFF9DF"><%=hpt.getH_name()%>
            </td>
            <td height="25" align="center" bgcolor="#FFF9DF"><%=hpt.getH_size()%>
            </td>
            <td height="25" align="center" bgcolor="#FFF9DF"><%=hpt.getH_num()%>
            </td>
            <td height="25" align="center" bgcolor="#FFF9DF"><%=hpt.getH_r()%>
            </td>
            <td height="25" align="center" bgcolor="#FFF9DF"><%=hpt.getH_n()%>
            </td>
            <td height="25" align="center" bgcolor="#FFF9DF"><%=hpt.getH_uw()%>
            </td>
            <td height="25" align="center" bgcolor="#FFF9DF"><input type="text" value="<%=hpt.getH_dj()%>" name="h_dj">
            </td>
            <td height="25" align="center" bgcolor="#FFF9DF"><%=hpt.getH_num() * hpt.getH_uw()%>
            </td>
            <td height="25" align="center" bgcolor="#FFF9DF"><%=hpt.getH_people()%>
            </td>
            <td height="25" align="center" bgcolor="#FFF9DF"><%=hpt.getH_ticketno()%>
            </td>
            <td height="25" align="center" bgcolor="#FFF9DF">
                <a href="over.do?h_id=<%=hpt.getH_id()%>">审核通过</a>
                <a href="off.do?h_id=<%=hpt.getH_id()%>">审核不通过</a>
                <input name="savedj" type="submit" value="保存吨价">
            </td>
        </tr>
    </form>
    <%}%>
    <tr align="center">
        <td bgcolor="#D6F2FD" colspan="4">
            检质员签字：
        </td>
        <td bgcolor="#D6F2FD" colspan="4">
            会计审核：
        </td>
        <td bgcolor="#D6F2FD" colspan="5">
            仓库管理员：
        </td>
    </tr>
    </tbody>
</table>
</body>
</html>